﻿using UnityEngine;

/// <summary>
/// 切换
/// </summary>
public class TestInspectorNodeCode : MonoBehaviour
{

    public int intA = 10;
    public float intB = 10;
    public char cA = 'A';
    public double doubleA = 10;
    public byte byteA = 255;
    public bool boolA = true;

    public Data data = new Data();

    public int GetIntA
    {
        get { return intA + 20; }
    }

    public void Run1()
    {
        Debug.Log("Run1");
    }

    public void Add(int a, int b)
    {
        Debug.Log(a + b);
    }
    public void Add(bool b)
    {
        Debug.Log("bool " + b);
    }
    public void Add(char c)
    {
        Debug.Log("char " + c);
    }
    public void Add(float c)
    {
        Debug.Log("float " + c);
    }
    public void Add(int c)
    {
        Debug.Log("int " + c);
    }
    public void Add(double c)
    {
        Debug.Log("double " + c);
    }
    public void Add(string c)
    {
        Debug.Log("string " + c);
    }
    public class Data
    {
        public int intA = 100;
        public float intB = 100;

        public Data2 data2 = new Data2();

        public int GetIntA
        {
            get { return intA + 20; }
        }
        public void Run2()
        {
            Debug.Log("Run2");
        }
        public void Run3()
        {
            Debug.Log("Run3");
        }
    }

    public class Data2
    {
        public int intA = 100;
        public float intB = 100;

        public int GetIntA
        {
            get { return intA + 20; }
        }
        public void Run4()
        {
            Debug.Log("Run2");
        }
    }


}
